package ch7.ex10;

import static ch7.print.Print.*;

class ParentClass{
	public void m1(){
		println("Inside m1, calling m2");
		m2();
	}
	public void m2(){
		println("Inside m2");
	}
} 

class DerivedClass extends ParentClass{
	public void m2(){
		println("Inside Inherited.m2");
	}
}
public class BaseClass {
	public static void main(String... args){
		ParentClass pc = new DerivedClass();
		pc.m1();
	}
}
